package worker;

import java.io.IOException;
import java.util.Timer;

import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class SetUpWordker implements ServletContextListener, MessageListener, ExceptionListener {
	public static void main(String[] args) throws IOException {
//		new WorkerContent();
//		new WorkerUpImage();
//		new WorkerUrl();
	}
	public SetUpWordker() throws IOException {
//		Timer timer = new Timer();
//		GetUrlDetail setDataWorker = new GetUrlDetail();
//
//	    // Schedule to run after every 3 second(3000 millisecond)
//
//	    timer.scheduleAtFixedRate( setDataWorker, 0,1000*60*20);
	}

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onException(JMSException arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onMessage(Message arg0) {
		// TODO Auto-generated method stub
		
	}
}
